package com.ruoyi.technicianAudit.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.technicianAudit.mapper.TechnicianLifePhotoAuditMapper;
import com.ruoyi.technicianAudit.domain.TechnicianLifePhotoAudit;
import com.ruoyi.technicianAudit.service.ITechnicianLifePhotoAuditService;

/**
 * 生活照审核Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-07
 */
@Service
public class TechnicianLifePhotoAuditServiceImpl implements ITechnicianLifePhotoAuditService 
{
    @Autowired
    private TechnicianLifePhotoAuditMapper technicianLifePhotoAuditMapper;

    /**
     * 查询生活照审核
     * 
     * @param id 生活照审核主键
     * @return 生活照审核
     */
    @Override
    public TechnicianLifePhotoAudit selectTechnicianLifePhotoAuditById(Long id)
    {
        return technicianLifePhotoAuditMapper.selectTechnicianLifePhotoAuditById(id);
    }

    /**
     * 查询生活照审核列表
     * 
     * @param technicianLifePhotoAudit 生活照审核
     * @return 生活照审核
     */
    @Override
    public List<TechnicianLifePhotoAudit> selectTechnicianLifePhotoAuditList(TechnicianLifePhotoAudit technicianLifePhotoAudit)
    {
        return technicianLifePhotoAuditMapper.selectTechnicianLifePhotoAuditList(technicianLifePhotoAudit);
    }

    /**
     * 新增生活照审核
     * 
     * @param technicianLifePhotoAudit 生活照审核
     * @return 结果
     */
    @Override
    public int insertTechnicianLifePhotoAudit(TechnicianLifePhotoAudit technicianLifePhotoAudit)
    {
        technicianLifePhotoAudit.setCreateTime(DateUtils.getNowDate());
        return technicianLifePhotoAuditMapper.insertTechnicianLifePhotoAudit(technicianLifePhotoAudit);
    }

    /**
     * 修改生活照审核
     * 
     * @param technicianLifePhotoAudit 生活照审核
     * @return 结果
     */
    @Override
    public int updateTechnicianLifePhotoAudit(TechnicianLifePhotoAudit technicianLifePhotoAudit)
    {
        technicianLifePhotoAudit.setUpdateTime(DateUtils.getNowDate());
        return technicianLifePhotoAuditMapper.updateTechnicianLifePhotoAudit(technicianLifePhotoAudit);
    }

    /**
     * 批量删除生活照审核
     * 
     * @param ids 需要删除的生活照审核主键
     * @return 结果
     */
    @Override
    public int deleteTechnicianLifePhotoAuditByIds(Long[] ids)
    {
        return technicianLifePhotoAuditMapper.deleteTechnicianLifePhotoAuditByIds(ids);
    }

    /**
     * 删除生活照审核信息
     * 
     * @param id 生活照审核主键
     * @return 结果
     */
    @Override
    public int deleteTechnicianLifePhotoAuditById(Long id)
    {
        return technicianLifePhotoAuditMapper.deleteTechnicianLifePhotoAuditById(id);
    }
}
